package com.wkbb.basic.thread;

import com.wkbb.basic.model.YoutuPerson;
import com.wkbb.basic.service.UserOpenService;
import com.wkbb.basic.service.YouTuService;
import com.wkbb.basic.utils.FileUtil;
import com.wkbb.basic.utils.ImageOfbase64UtilDto;
import lombok.extern.slf4j.Slf4j;

import java.net.URL;
import java.util.List;

/**
 * @author dengjingyuan
 * @date 2019-12-21 20:31
 */
@Slf4j
public class ClearNickNameTask implements Runnable {

    private UserOpenService userOpenService;

    private Long userId;

    public ClearNickNameTask(UserOpenService userOpenService, Long userId) {
        this.userOpenService = userOpenService;
        this.userId = userId;
    }

    public ClearNickNameTask() {

    }

    @Override
    public void run() {
        log.info("*********开始清除昵称数据********userId:{}",userId);
        try {
            userOpenService.clearNickName(userId);
        } catch (Exception e) {
            log.error("*******ClearNickNameTask**********", e);
        }
    }
}